package com.suray.attendance.model.enums.dingding;

/**
 * @description:
 * @author: jianglinyu
 * @date: 2023/7/20 11:40
 **/
public enum ProcessInstanceStatus {
    新创建("NEW"),
    审批中("RUNNING" ),
    被终止("TERMINATED" ),
    完成("COMPLETED" ),
    取消("CANCELED");
    private String comment ;

    public static String getStatusNameByStatus(String status) {
        ProcessInstanceStatus arrObj[] = ProcessInstanceStatus.values();
        for (ProcessInstanceStatus obj : arrObj) {
            if (obj.name().equals(status)) {
                return obj.getComment();
            }
        }
        return "";
    }
    ProcessInstanceStatus(String comment){
        this.comment=comment;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

}
